﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<UI.Data.Comentarios>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Comentarios en publicaciones</h2>

<table class="table table-hover table-striped">
    <tr>
        <th>
            <%: Html.DisplayName("Publicacion") %>
        </th>
        <th>
            <%: Html.DisplayName("Descripcion") %>
        </th>
        <th>
            <%: Html.DisplayName("Fecha") %>
        </th>
        <td></td>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.Label(item.Ventas.Producto.Nombre) %>
        </td>
        <td>
            <%: Html.Label(item.Descripcion) %>
        </td>
        <td>
            <%: Html.Label(item.Fecha.ToShortDateString()) %>
        </td>
        <td>
            <%: Html.ActionLink("Eliminar", "Delete"/*, new { id=item.Id }*/) %>
        </td>
    </tr>
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
